﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IList<z.m.db.Product>>" %>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
	Home Page
</asp:Content>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
	<div id="cen" class="home" ondragenter="dragEnter(event);" ondragover="dragOver(event);" ondrop="drop(event);">
		<% 
			foreach (var x in Model) {
				Response.Write(Html.Partial("~/Views/Product/_Index.aspx", x));
			}
		%>
	</div>
</asp:Content>
<asp:Content ContentPlaceHolderID="RightContent" runat="server">
	<div id="rig" ondragenter="dragEnter(event);" ondragover="dragOver(event);" ondrop="drop(event);">
		<div id="btnShopCar" class="btn" onclick="XRight();">
			<div>
				<object type="image/svg+xml" data="http://localhost/web/img?src=cart"></object>
			</div>
			<div>Cart</div>
		</div>
		<div id="rigTop">
			<div style="position: absolute; top: 35px; font-size: 1.25em; font-weight: bold;">
				Sum
			</div>
			<div id="Total" style="position: absolute; top: 35px; right: 100px; font-size: 1.25em; font-weight: bold; text-align: right;"></div>
			<a id="Buy" class="btn" href="javascript:btnOrderBuy(event);">
				<div>
					<object type="image/svg+xml" data="http://localhost/web/img?src=buy"></object>
				</div>
				<div>Buy</div>
			</a>
		</div>
		<div id="rigMid">
		</div>
	</div>
</asp:Content>
<asp:Content ContentPlaceHolderID="ScriptsSection" runat="server">
	<%: Styles.Render("~/Content/home") %>
	<%: Scripts.Render("~/js/home") %>
</asp:Content>
